import {request,requestMock} from "@/request"

//1. 请求一级列表
export const reqCategory1List = ()=>{
    return request.get('/admin/product/getCategory1')
}

//2. 根据一级分类请求二级分类
export const reqCategory2List = (category1Id) => {
    return request.get(`/admin/product/getCategory2/${category1Id}`);
}; 

//3. 根据二级分类请求对应的三级分类
export const reqCategory3List = (category2Id) => {
    return request.get(`/admin/product/getCategory3/${category2Id}`);
  };

//4.Mock请求contain的banner轮播图
export const reqBannerList = () => {
    return requestMock.get(`/banner/list`);
  };

//5.Mock请求floor的轮播图信息
export const reqFloorList = () => {
    return requestMock.get(`/floor/list`);
  };